<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<% String path=request.getContextPath(); String basePath=request.getScheme()+ "://" + request.getServerName() + ":" + request.getServerPort() + path+ "/"; %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head>
<base href="<%=basePath%>">
<title>险别添加</title>
<%@ include file="/WEB-INF/jsp/common/common.jsp" %>
<style type="text/css">
.input_text{
width: 250px;
}
.select_1{
width: 250px;
}
.content_table_1 th{background-color:#ECF5FC; color:#343233; width:11%; text-align:center; line-height:23px; font-family: "宋体"; font-size:12px; font-weight:normal; border-bottom:2px #bbcddb solid;}
</style>
<script src="js/jquery.validate.js" type="text/javascript" ></script>
<script src="js/jquery.divbox.js" type="text/javascript"></script>
<script src="js/json2.js" type="text/javascript"></script>
<style type="text/css">
		#detail
        {
            position:relative;
            width: 200px;
            font-size: 12px;
            background: #fff;
            border: 1px solid #000;
            z-index: 2;
            display: none;
        } 
        #detail2
        {
            position:relative;
            width: 200px;
            font-size: 12px;
            background: #fff;
            border: 1px solid #000;
            z-index: 2;
            display: none;
        } 
	</style>

<script type="text/javascript">
var startP=1;
var prodType='${prodType}';
var prodCode='${prodCode}';
var useRiskCode="";
var Formstatus=true;

$(document).ready(function() {
	loadPlan({current:1,size:6,prodCode:prodCode});
});

function loadPlan(param){
	$.openLoading();
	$.ajax({
		url : "noCarProduct/loadPlan",
		type : 'POST',
		async : true,
		dataType:'json',
		data:param,
		success : function(page) {
			$.closeLoading();	
			if($.validate(page))return;
			startP = page.current;
			var buttonStr = "<a href='javascript:void(0)' onClick='editRiskReq(this);return false'>编辑</a>&nbsp;<a href='javascript:void(0)' onClick='delRisk(this)'>删除</a>";
			var tableContent = creatTable("riskCode@TDH,prodCode@TDH,nField1,riskName,riskCalType@TDH,riskCalDscp,amount,nField17,nField6,nField7,nField8,nField18,cField3,nField10,nField11,<a href='javascript:void(this)' style='font-size:12px;display: block;overflow: hidden;white-space: nowrap;text-align:center;-o-text-overflow: ellipsis;text-overflow: ellipsis;width:120px;font-family:宋体;font-weight:normal' onDblClick='copyDetail(this);' onclick='showDatail(this);return false' onmouseover='showDatail(this);return false' onmouseout='closeDatail(this);return false'>cField10</a>,cField10@TDH",page,buttonStr);
			var tableObj = $("#ProdPlanTable");
			tableObj.find("tbody").remove();
			tableObj.append(tableContent);
			var strPage = creatChannelPage3(startP,6,page.maxPage,"13");
			var pageDIV = $("#ProdPlanpageDIV");
			pageDIV[0].innerHTML="";
			pageDIV.append(strPage);
		}
	});
}

function queryProdPlan(pagenum){
	loadPlan({current:pagenum,size:6,prodCode:prodCode});
}
function addRisk(param){
	if(!Formstatus){
		$.message("error","正在处理中");
		return;
	}
	
	Formstatus=false;
	$.openLoading();
	$.ajax({
		url : "noCarProduct/saveRisk",
		type : 'POST',
		async : true,
		dataType:'json',
		data:param,
		success : function(obj) {
			Formstatus=true;
			$.closeLoading();
			if($.validate(obj))return;
			vreset();					//重置
			loadPlan({current:1,size:6,prodCode:prodCode});
		}
	});
}
//主附险标志
function addMainSign(){
	var otherCode = $('#riskCode :selected').attr('class');//主附险标志取值
	
	if(otherCode==0){
		$('#nField21').val('主险');
		$('#prmryFlag').val('0');
	}else if(otherCode==1){
		$('#nField21').val('附加险');
		$('#prmryFlag').val('1');
	}else{
		$('#nField21').val('');
		$('#prmryFlag').val('');
	}
}
//添加险别校验
function add(){
	if($("#riskCode").val()==""){
		$.message("error","请选择险别");
    	return;
	}
	if($("#riskCalType").val()==""){
		$.message("error","请选择保费计算方式");
    	return;
	}
	if($("#amount").val()==""){
		$.message("error","请输入赔偿限额（元）");
    	return;
	}
	if($("#cField3").val()==""){
		$.message("error","请选择层级编码");
    	return;
	}
	if($("#nField10").val()==""){
		$.message("error","请输入基准费率（‰）");
    	return;
	}
	if($("#nField11").val()==""){
		$.message("error","请输入实际费率（‰）");
    	return;
	}
	
	
	var riskCode = $('#riskCode').val();//险别编码
	var riskName = $('#riskCode').find("option:selected").text();//险别名称
	var riskCalType= $("#riskCalType").val();//保费计算方式
	var amount= $.trim($("#amount").val());//赔偿限额（元）
	var nField17= $.trim($("#nField17").val());//每人医疗费用基准费率
	var nField6= $.trim($("#nField6").val());//法律费用累计责任限额（元）
	var nField7= $.trim($("#nField7").val());//每次事故每人责任限额（元）
	var nField8= $.trim($("#nField8").val());//累计超额责任限额（元）
	var nField18= $.trim($("#nField18").val());//每人死亡伤残基准费率
	var cField3= $.trim($("#cField3").val());//层级编码
	var nField10= $.trim($("#nField10").val());//基准费率
	var nField11= $.trim($("#nField11").val());//实际费率
	var prmryFlag= $("#prmryFlag").val();//主副险标识
	var cField10= $("#cField10").val();//免赔条件
	
	addRisk({prodType:prodType,prodCode:prodCode,riskCode:riskCode,riskName:riskName,riskCalType:riskCalType,amount:amount,
		nField17:nField17,nField6:nField6,nField7:nField7,nField8:nField8,nField18:nField18,cField3:cField3,nField10:nField10,nField11:nField11,
		cField10:cField10,prmryFlag:prmryFlag});
}

/**
 * 重置
 */
function vreset(){
	$("#riskCode").val("");
	$("#riskCalType").val("");
	$("#amount").val("");
	$("#nField17").val("");
	$("#nField6").val("");
	$("#nField7").val("");
	$("#nField8").val("");
	$("#nField18").val("");
	$("#cField3").val("");
	$("#nField10").val("");
	$("#nField11").val("");
	$("#cField10").val("");
	$("#nField21").val("");
}
/**
 * 删除险别
 */
function delRisk(obj){
	var riskCode  = $(obj).parent('td').parent('tr')[0].childNodes[0].innerHTML;
	var indexId  =  $(obj).parent('td').parent('tr')[0].childNodes[2].innerHTML;

	$.dialog({
		type: "warn",//success,error
		content: "您确定要删除该险别吗？",
		onOk: function() {
			deleteRisk(prodCode,riskCode,indexId);
		}
	});
}
function deleteRisk(prodCode,riskCode,indexId){
	
	$.openLoading();
	$.ajax({
		url : "noCarProduct/riskDelete",
		type : 'POST',
		async : true,
		dataType:'json',
		data:{prodCode:prodCode,riskCode:riskCode,nField1:indexId},
		success : function(obj) {
			$.closeLoading();
			if($.validate(obj))return;
			
			loadPlan({current:1,size:6,prodCode:prodCode});
		}
	});
}
var nField1=0;
//打开编辑窗口
function editRiskReq(obj){
	var editTr = $(obj).parent('td').parent('tr')[0];
	var riskCode = editTr.childNodes[0].innerHTML;//险别代码
	useRiskCode=riskCode;
	nField1 = editTr.childNodes[2].innerHTML;
	var riskName = editTr.childNodes[3].innerHTML;///险别名称
	var riskCalType = editTr.childNodes[4].innerHTML;//保费计算方式
	var amount = editTr.childNodes[6].innerHTML;//累计责任限额
	var nField17 = editTr.childNodes[7].innerHTML;//每人医疗费用基准费率
	var nField6 = editTr.childNodes[8].innerHTML;//法律费用责任限额
	var nField7 = editTr.childNodes[9].innerHTML;//每次事故每人责任限额
	var nField8 = editTr.childNodes[10].innerHTML;//累计超额责任限额
	var nField18 = editTr.childNodes[11].innerHTML;//每人死亡伤残基准费率
	var cField3 = editTr.childNodes[12].innerHTML;//层级编码
	var nField10 = editTr.childNodes[13].innerHTML;//基准费率
	var nField11 = editTr.childNodes[14].innerHTML;//实际费率
	var cField10 = editTr.childNodes[16].innerHTML;//免赔条件

	$("#eriskName").val(riskName);
	$("#eriskCalType").val(riskCalType);
	$("#eamount").val(amount);
	$("#enField17").val(nField17);
	$("#enField6").val(nField6);
	$("#enField7").val(nField7);
	$("#enField8").val(nField8);
	$("#enField18").val(nField18);
	$("#ecField3").val(cField3);
	$("#enField10").val(nField10);
	$("#enField11").val(nField11);
	$("#ecField10").val(cField10);
	
	$("#editPlanDiv").OpenDiv();
}

function saveEditRisk(){
	
	if($("#eriskCalType").val()==""){
		$.message("error","请选择保费计算方式");
    	return;
	}
	if($("#eamount").val()==""){
		$.message("error","请输入赔偿限额（元）");
    	return;
	}
	if($("#ecField3").val()==""){
		$.message("error","请选择层级编码");
    	return;
	}
	if($("#enField10").val()==""){
		$.message("error","请输入基准费率（‰）");
    	return;
	}
	if($("#enField11").val()==""){
		$.message("error","请输入实际费率（‰）");
    	return;
	}
	
	
	var riskCalType= $("#eriskCalType").val();//保费计算方式
	var amount= $.trim($("#eamount").val());//赔偿限额限额（元）
	var nField17= $.trim($("#enField17").val());//每人医疗费用基准费率
	var nField6= $.trim($("#enField6").val());//法律费用累计责任限额
	var nField7= $.trim($("#enField7").val());//每次事故每人责任限额
	var nField8= $.trim($("#enField8").val());//累计超额责任限额
	var nField18= $.trim($("#enField18").val());//每人死亡伤残基准费率
	var cField3= $.trim($("#ecField3").val());//层级编码
	var nField10= $.trim($("#enField10").val());//基准费率
	var nField11= $.trim($("#enField11").val());//实际费率
	var cField10= $("#ecField10").val();//免赔条件
	
	updateRiskInfo({prodCode:prodCode,prodType:prodType,riskCode:useRiskCode,riskCalType:riskCalType,amount:amount,nField1:nField1,
		            nField17:nField17,nField6:nField6,nField7:nField7,nField8:nField8,nField18:nField18,cField3:cField3,
		            nField10:nField10,nField11:nField11,cField10:cField10});
}


function updateRiskInfo(param){
	if(!Formstatus){
		$.message("error", "正在处理中");
		return;
	}
	Formstatus=false;
	$.openLoading();
	$.ajax({
		url : "noCarProduct/riskUpdate",
		type : 'POST',
		async : true,
		dataType:'json',
		data:param,
		success : function(obj) {
			Formstatus=true;
			$.closeLoading();
			if($.validate(obj))return;
			loadPlan({current:1,size:6,prodCode:prodCode});
			closeEditPlanDiv();
		}
	});
}


function closeEditPlanDiv(){
	$("#editPlanDiv").CloseDiv();
}
//单击或将免赔条件得到焦点时触发效果
function showDatail(obj){
	var result=obj.innerHTML;
	if(result!=""){
		 var length =obj.scrollWidth;
		 if(length>240){
		 	var e = arguments.callee.caller.arguments[0]||window.event;
		 	var y = e.clientY;
		 	var x= document.body.offsetWidth;
		 	if(x>460){
		 		x=x-460;
		 	}
		 	var div3 = document.getElementById("detail");   
		 	document.getElementById("detail").style.display = 'block';
		 	div3.style.left=x;     
            div3.style.top=e.clientY+1;  
            div3.style.position="absolute";
		 	$("#input")[0].innerHTML=result;
		 }
	}
}
//当免赔条件失去焦点时触发效果
function closeDatail(){
	document.getElementById("detail").style.display = 'none';
}
//双击免赔条件触发效果
function copyDetail(obj){
	var result=obj.innerHTML;
	if(result!=""){
		 var length =obj.scrollWidth;
		 if(length>0){
		 	var e = arguments.callee.caller.arguments[0]||window.event;
		 	var y = e.clientY;
		 	var x= document.body.offsetWidth;
		 	if(x>460){
		 		x=x-460;
		 	}
		 	var div3 = document.getElementById("detail2");   
	        document.getElementById("detail2").style.display = 'block';
		 	div3.style.left=x;     
            div3.style.top=e.clientY+1;  
            div3.style.position="absolute";
		 	$("#output")[0].innerHTML=result;
		 }
	}
}
//点击免赔条件关闭
function closeDiv(){
	document.getElementById("detail2").style.display = 'none';
}
</script>
<style>
	.input_text {
	padding-left: 3px;
	}
	</style>
</head>
<body>
<div class="right">
	      <div class="current">
	           <table class="current_table_1">
	              <tbody>
		              <tr>
		                <td><img src="./images/current_1.jpg"></td>
		                  <td class="current_table_1_td"><img src="images/current_1.png">&nbsp;您现在的位置：&nbsp;
			                  <span style=" color:#136bab; ">财险产品管理
			                  <span style="padding:0 5px; font-weight:bold; line-height:28px;">&gt;</span>产品配置
			                  <span style="padding:0 5px; font-weight:bold; line-height:28px;">&gt;</span>添加险别
			                  </span>
		                  </td>
		                  <td><img src="./images/current_3.jpg"></td>
		              </tr>
	           	  </tbody>
	           </table>
	      </div>
	      <div>
			<form id="inputForm" >
			<table class="table_05">
	              <tbody>
		    		  <tr>
 		              	<td style="line-height:23px;">
 		              		<font color="#3876bf"><b>产品代码：</b></font> ${prodCode}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="#3876bf"><b>产品名称：</b></font>${prodName}
 		              	</td>
		              </tr>
	           	  </tbody>
	         </table> 
	        <table class="table_05">
	              <tbody>
		              <tr>
		                  <td colspan="4" style=" font-size:12px; font-weight:bold; text-align:left;color:#3876bf; line-height:17px; background-image:url(images/centent_1.jpg)">险别添加</td>
		              </tr>
		    		  <tr>
		                  <th width="35%">险别：</th>
		                  <td width="18%"><select id="riskCode" name = "riskCode" class="select_1" style="visibility: visible;" onchange="addMainSign()" >
		                  					<option value="">------------------请选择------------------</option>
		                  					<c:forEach var ="riskCode" items="${riskCode}">
		                  						<option id="riskCode" class="${riskCode.otherCode }" value="${riskCode.code}">${riskCode.codeName}</option>
		                  					</c:forEach>
		                  				  </select><span class="red">*</span>
		                   </td>
		                   <th width="50%">保费计算方式：</th>
		                  <td width="8%"><select id="riskCalType" name = "riskCalType" class="select_1" style="visibility: visible;">
		                  					<option value="">------------------请选择------------------</option>
		                  					<c:forEach var ="riskTypeCal" items="${riskCalTypeList}">
		                  						<option value="${riskTypeCal.code}">${riskTypeCal.codeName}</option>
		                  					</c:forEach>
		                  				  </select><span class="red">*</span></td>
		              </tr>
		              <tr>
		              	  <th width="35%">赔偿限额（元）：</th>
		                  <td width="18%"><input id="amount" name = "amount" type="text" maxlength="20" class="input_text" onKeyUp="clearNoNum(event,this)" onBlur="checkNum(this)"><span class="red">*</span></td>
		                  <th width="50%">每人医疗费用基准费率(‰)：</th>
		                  <td width="8%" ><input id="nField17" name = "nField17" type="text" maxlength="20" class="input_text" onKeyUp="clearNoNum(event,this)" onBlur="checkNum(this)"></td>
		              </tr>
		              <tr>
		              	  <th width="35%">法律费用累计责任限额(元)：</th>
		                  <td width="18%"><input id="nField6" name = "nField6" type="text" maxlength="20" class="input_text" onKeyUp="clearNoNum(event,this)" onBlur="checkNum(this)"></td>
		                  <th width="50%">每次事故每人责任限额(元)：</th>
		                  <td width="8%"><input id="nField7" name = "nField7" type="text" maxlength="20" class="input_text" onKeyUp="clearNoNum(event,this)" onBlur="checkNum(this)"></td>
		              </tr>
		              <tr>
		              	  <th width="35%">累计超额责任限额（元）：</th>
		                  <td width="18%"><input id="nField8" name = "nField8" type="text" maxlength="20" class="input_text" onKeyUp="clearNoNum(event,this)" onBlur="checkNum(this)"></td>
		                  <th width="50%">每人死亡伤残基准费率(‰)：</th>
		                  <td width="8%" ><input id="nField18" name = "nField18" type="text" maxlength="20" class="input_text" onKeyUp="clearNoNum(event,this)" onBlur="checkNum(this)"></td>
		              </tr>
		              <tr>
		              	  <th width="35%">层级编码：</th>
		              	  <td><select id="cField3" name = "cField3" class="select_1" style="visibility: visible;">
                  					<option value="">------------------请选择------------------</option>
                 					<option value="001">001</option>
                 					<option value="002">002</option>
                 					<option value="003">003</option>
		                  	   </select><span class="red">*</span>
		                  </td>
		                  <th width="50%">基准费率（‰）：</th>
		                  <td width="8%" ><input id="nField10" name = "nField10" type="text" maxlength="20" class="input_text" onKeyUp="clearNoNum(event,this)" onBlur="checkNum(this)"><span class="red">*</span></td>
		              </tr>
		              <tr>
		                  <th width="35%">实际费率（‰）：</th>
		                  <td width="18%" ><input id="nField11" name = "nField11" type="text" maxlength="20" class="input_text" onKeyUp="clearNoNum(event,this)" onBlur="checkNum(this)"><span class="red">*</span></td>
		              	  <th width="50%">主附险标志：</th>
		                  <td width="8%" >
			                  <input id="nField21" name = "nField21"  type="text" maxlength="20" class="input_text" readonly="true" style=" background-color: #ccc;"   onBlur="checkNum(this)"><span class="red">*</span>
			                  <input id="prmryFlag" name = "prmryFlag"  type="text" maxlength="20" class="input_text" style="display: none"  >
		                  </td>
		              </tr>
		              <tr>
		                  <th width="35%">免赔条件：</th>
		                  <td colspan="3"><textarea name="cField10" id="cField10"  maxlength="500"  rows="5" class="textarea_1" style="resize:none;width:94%"></textarea></td>
		              </tr>
	           	  </tbody>
	         </table> 
	         <div align="center">
	             <input class="input_button_1" name="" type="button" onclick="add()" value="保存">&nbsp;&nbsp;
		         <input class="input_button_1" name="" type="button" onclick="vreset()"value="重置">
	         </div>
	         </form>
	      </div>
	      
 	      <!-- 险别列表 -->
	      <div style="margin-top: 5px;">
	         <table class="table_02" id="ProdPlan" align="center" >
				<tbody>
					<tr>
						   <td colspan="6" style=" font-size:12px; font-weight:bold; text-align:left;color:#3876bf; line-height:27px;height:27px; background-image:url(images/centent_1.jpg)">&nbsp;已添加险别列表</td>
					</tr>
					<tr>
						<td>
							<table id="ProdPlanTable" class="content_table_1">
								<thead>
									<tr class="f1">
									   <th style="width:2%">序号</th>
									   <th style="width:17%">险别</th>
					                   <th style="width:12%">保费计算方式</th>
								       <th style="width:7%">赔偿限额(元)</th>
								       <th style="width:9%">每人医疗费用基准费率(‰)</th>
								       <th style="width:9%">法律费用累计责任限额(元)</th>
								       <th style="width:9%">每次事故每人责任限额(元)</th>
								       <th style="width:7%">累计超额责任限额(元)</th>
								       <th style="width:7%">每人死亡伤残基准费率(‰)</th>
								       <th style="width:4%">层级编码</th>
								       <th style="width:4%">基准费率(‰)</th>
								       <th style="width:4%">实际费率(‰)</th>
								       <th style="width:2%">免赔条件</th>
								       <th style="width:22%">操作</th>
					              	</tr>
								</thead>
								<tbody>
								</tbody>
							</table>
							<div id="ProdPlanpageDIV"  class="page"></div>
						</td>
					</tr>
				</tbody>
			</table>
	      </div>
	      <div id="detail" style="display:none;">
		  <div id="input" style="margin:5px;word-wrap:break-word;"></div>
		 </div>
	      <div id="detail2" style="display:none;">
			<h4  style='background-color:#A4BDE3;'>
				<table height="20px">
					<tr>
					    <td width="200px";>
					    </td>
					    <td align="right">
					       <img src="./images/closedown.gif"  onclick="closeDiv()"/>
					    </td>
					</tr>							
				</table>
				<input type="hidden" id="appId" value="">
			</h4>	
			<div id="output" style="margin:5px;word-wrap:break-word;"></div>
		</div>     
	

</div>
	<!--   	编辑模板 DIV 默认隐藏-->
	<div id="editPlanDiv"  style="display:none;overflow-y:auto; width:60%">
			<input type="hidden" id="row_num" name="row_num" value="0"/>
			<div class="table_title_div">
					<table class="table_title" style='width:100%;height: 20px;'>
						<tr>
						<td width="10%"></td>
						<td width="80%" id="interfaceName"></td>
						<td width="10%" align="right"><img src="/manager/images/closedown.gif" alt="关闭"  onclick="closeEditPlanDiv()"/></td>
						</tr>
					</table>
			</div>
			<!-- 修改id 名 -->
			<table class="table_02" id="addtempletTable" align="center">
				<tbody>
					<tr>
						<td>
							<table id="coverageTable"  class="content_table_1" style="height:120px;">
								
								<tbody>
									<tr>
					                  <td width="40%" style="text-align:right;border-right:0px;">险别：&nbsp;&nbsp;</td>
					                  <td width="60%" style="text-align:left"><input type="text" id="eriskName" class="input_text"  readonly="readonly" style=" background-color: #ccc;"></td>
					                </tr>
					                <tr>
					                  <td width="40%" style="text-align:right;border-right:0px;">保费计算方式：&nbsp;&nbsp;</td>
					                  <td width="60%" style="text-align:left"><select id="eriskCalType" class="select_1" style="visibility: visible;width:250px;">
		                  					<option value="">------------------请选择------------------</option>
		                  					<c:forEach var ="eriskTypeCal" items="${riskCalTypeList}">
		                  						<option value="${eriskTypeCal.code}">${eriskTypeCal.codeName}</option>
		                  					</c:forEach>
		                  				  </select><span class="red">*</span></td>
					                </tr>
					                <tr>  
					                  <td width="40%" style="text-align:right;border-right:0px;">赔偿限额（元）：&nbsp;&nbsp;</td>
					                  <td width="60%" style="text-align:left"><input id="eamount" type="text" class="input_text"  maxlength="20" onKeyUp="clearNoNum(event,this)" onBlur="checkNum(this)"><span class="red">*</span></td>
					                </tr>
					                <tr>  
					                  <td width="40%" style="text-align:right;border-right:0px;">每人医疗费用基准费率（‰）：&nbsp;&nbsp;</td>
					                  <td width="60%" style="text-align:left"><input id="enField17" type="text" class="input_text" maxlength="20" onKeyUp="clearNoNum(event,this)" onBlur="checkNum(this)"></td>
					                </tr>
					                <tr>  
					                  <td width="40%" style="text-align:right;border-right:0px;">法律费用累计责任限额（元）：&nbsp;&nbsp;</td>
					                  <td width="60%" style="text-align:left"><input id="enField6" type="text" class="input_text" maxlength="20" onKeyUp="clearNoNum(event,this)" onBlur="checkNum(this)"></td>
					                </tr>
					                <tr>  
					                  <td width="40%" style="text-align:right;border-right:0px;">每次事故每人责任限额（元）：&nbsp;&nbsp;</td>
					                  <td width="60%" style="text-align:left"><input id="enField7" type="text" class="input_text" maxlength="20" onKeyUp="clearNoNum(event,this)" onBlur="checkNum(this)"></td>
					                </tr>
								    <tr>  
					                  <td width="40%" style="text-align:right;border-right:0px;">累计超额责任限额（元）：&nbsp;&nbsp;</td>
					                  <td width="60%" style="text-align:left"><input id="enField8" type="text" class="input_text" maxlength="20" onKeyUp="clearNoNum(event,this)" onBlur="checkNum(this)"></td>
					                </tr>
								    <tr>  
					                  <td width="40%" style="text-align:right;border-right:0px;">每人死亡伤残基准费率（‰）：&nbsp;&nbsp;</td>
					                  <td width="60%" style="text-align:left"><input id="enField18" type="text" class="input_text" maxlength="20" onKeyUp="clearNoNum(event,this)" onBlur="checkNum(this)"></td>
					                </tr>
					                <tr>
					                  <td width="40%" style="text-align:right;border-right:0px;">层级编码：&nbsp;&nbsp;</td>
					                  <td width="60%" style="text-align:left"><select id="ecField3" class="select_1" style="visibility: visible;width:250px;">
		                  					<option value="">------------------请选择------------------</option>
		                  						<option value="001">001</option>
		                  						<option value="002">002</option>
		                  						<option value="003">003</option>
		                  				  </select><span class="red">*</span></td>
					                </tr>
					                <tr>  
					                  <td width="40%" style="text-align:right;border-right:0px;">基准费率（‰）：&nbsp;&nbsp;</td>
					                  <td width="60%" style="text-align:left"><input id="enField10" type="text" class="input_text" maxlength="20" onKeyUp="clearNoNum(event,this)" onBlur="checkNum(this)"><span class="red">*</span></td>
					                </tr>
					                <tr>  
					                  <td width="40%" style="text-align:right;border-right:0px;">实际费率（‰）：&nbsp;&nbsp;</td>
					                  <td width="60%" style="text-align:left"><input id="enField11" type="text" class="input_text" maxlength="20" onKeyUp="clearNoNum(event,this)" onBlur="checkNum(this)"><span class="red">*</span></td>
					                </tr>
					                <tr>
					                  <td width="40%" style="text-align:right;border-right:0px;">免赔条件：&nbsp;&nbsp;</td>
					                  <td width="60%" style="text-align:left"><textarea name="ecField10" id="ecField10"  maxlength="500"  rows="5" class="textarea_1" style="resize:none;width:94%"></textarea></td>
					                </tr>
								</tbody>
							</table>
							
						</td>
					</tr>
				</tbody>
			</table>
			<div align="center">
			   <input class="input_button_3" name="" type="button" onclick="saveEditRisk()" value="保存">&nbsp;&nbsp;
	           <input class="input_button_3" name="" type="button" onclick="closeEditPlanDiv()" value="取消">
			</div>
	</div>
	
</body>
</html>